﻿@using BrnMall.Manager.Domain.WeApp
@model System.Collections.Generic.IList<BrnMall.Manager.Domain.WeApp.StoreApplication>

@section header{
    <title>底部导航-小程序列表</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}

@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 首页定制 &gt; <span class="rightH1-cur">底部导航</span>
        <div class="right">
            
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>

    <div class="table_top" style="margin-left: 15px; color: coral">
        <div>(1)此功能只提供给自动打包的小程序</div>
        <div>(2)未发布的小程序不能修改底部导航</div>
        <div>(3)设置底部导航后，只有重新提交微信审核才会起效</div>
    </div>
    @using (Html.BeginForm("StoreAppList", "WeApp"))
    {
        <div class="dataList">
            <table style="width:100%;">
                <thead>
                <tr>
                    <th width="80"></th>
                    <th align="left">Logo</th>
                    <th align="left">名称</th>
                    <th align="left">创建时间</th>  
                    <th align="left">状态</th>
                    <th align="left">管理操作</th>
                    
                </tr>
                </thead>
                <tbody>
                @foreach (StoreApplication info in Model)
                {
                    <tr>
                        <td></td>
                        <td><img width="75" height="75" src="@info.Logo" /></td>
                        <td>@info.Name</td>
                        <td>@info.CreateTime.ToShortDateString()</td>
                        <td>@if (info.DevStatus != 5)
                            {
                                @:未发布
                            }
                            else
                            {
                                @:已发布
                            }</td>
                        <td>
                            
                            @if (info.DevStatus == 5)
                            {
                                @Html.ActionLink("[设置底部导航]", "StoreAppTabBarSetting", new { storeappid = info.StoreAppId }, new { @class = "editOperate" })
                            }
                            else
                            {
                                @:未发布的小程序不能修改底部导航
                            }
                            
                                
                                
                            
                            

                        </td>
                        
                    </tr>
                }
                </tbody>
            </table>
        </div>
    }
    <div class="table_bottom" style="margin-left:15px; color: coral">
        
    </div>
}